package thread4;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;

public class TestBank {
	public static void main(String[] args) throws FileNotFoundException {
		System.setOut(new PrintStream(new File("bank.out")));
		Account ac = new Account("张洋", 10000);
		MoneyTaker t = new MoneyTaker("张洋父母", ac);
		MoneyTaker t1 = new MoneyTaker("张洋老婆", ac);
		MoneyTaker t2 = new MoneyTaker("张洋小三", ac);
		MoneyTaker t3 = new MoneyTaker("张洋小四", ac);
		MoneyPuter m = new MoneyPuter("张洋", ac);
		m.start();

		t.start();
		t1.start();
		t2.start();
		t3.start();

	}
}
